#!/usr/bin/python
list1 = ["golang","java","c++"]
list2 = [1,2,3,4,4]
print(list1)

#list的增删改查
print(list1[0])
list1[0] = "go"
list1.append("python")
print(list1)
del list1[0]
print(list1)

#list常见操作符
print(len(list1))
print([1,2] + [3,4])
print(list1 * 2)
print('java' in list1)
for val in list1:
    print(val)
print("-------")
print(list1)
print(list1[-3])

#常见函数和方法
print(len(list1))
print(max(list2))

print(list1.append("py"))
print(list1)
print(list2.count(4))
print(list2.reverse())
print(list2)